package com.heima.behavior.service.impl;

import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.AsyncResult;
import org.springframework.stereotype.Service;

import java.util.concurrent.Future;

@Service
public class C {

    /**
     * 获取是否不喜欢
     * @param uId
     * @return
     */
    @Async("leadnewsExecutor")
    public Future<Integer> queryNotLike(Long uId) throws InterruptedException {
        Thread.sleep(1000);
        return new AsyncResult<>(1);
    }
}
